<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			window.onload = function(){
				var colors = ["蓝色","黄色","绿色"];
				var colorMeans = ["blue","yellow","green"];
				var ul = document.createElement("ul");
				for (var k in colors) {
					var li = document.createElement("li");
					li.setAttribute("mean",colorMeans[k]);
					var txt = document.createTextNode(colors[k]);
					li.appendChild(txt);
					ul.appendChild(li);
				}
				document.body.appendChild(ul);
			}
		</script>
	</head>
	<body>
		
	</body>
</html>
